package golf;

import golf.Character.CharacterGrade;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import database.DAO;


public class OnItemList {
	int no;
	int seq_no;
	String name;
	String category_name;
	int basic_durability;
	int curr_durability;
	String itemwearcd;

	public OnItemList(){}
	public OnItemList(ResultSet rs){
	
		try {
			setNo( rs.getInt("ITEMNO") );
			setSeq_No(rs.getInt("SEQNO"));
			setName(rs.getString("ITEMNM"));
			setCategory_name(rs.getString("ITEMCATENM"));
			setBasic_durability(rs.getInt("ITEMBASICDUR"));
			setCurr_durability(rs.getInt("CURRDUR"));
			setitemwearcd(rs.getString("ITEMWEARCD"));
			
	
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
	
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public int getSeq_No() {
		return seq_no;
	}
	public void setSeq_No(int seq_no) {
		this.seq_no = seq_no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCategory_name() {
		return category_name;
	}
	public void setCategory_name(String category_name) {
		this.category_name = category_name;
	}
	public int getBasic_durability() {
		return basic_durability;
	}
	public void setBasic_durability(int basic_durability) {
		this.basic_durability = basic_durability;
	}
	public int getCurr_durability() {
		return curr_durability;
	}
	public void setCurr_durability(int curr_durability) {
		this.curr_durability = curr_durability;
	}
	public String getitemwearcd() {
		return itemwearcd;
	}
	public void setitemwearcd(String itemwearcd) {
		this.itemwearcd = itemwearcd;
	}
	
	
}
